Fix #22
authorjustbur <justin@burkett.cc>
Thu, 9 Jul 2015 11:44:36 +0000 (07:44 -0400)
committerjustbur <justin@burkett.cc>
Thu, 9 Jul 2015 11:44:46 +0000 (07:44 -0400)
Check for keymap instead of not a symbol.

which-key.el

index c3e06f9a796777ed21948b32147fc3d770010149..6d08ad384f30cfce940c19f3c1341ad07b3c10a1 100644 (file)
@@ -196,8 +196,10 @@ bottom."
   "Fill which-key--buffer with key descriptions and reformat.
 Finally, show the buffer."
   (let ((prefix-keys (this-single-command-keys)))
+;;    (when (> (length prefix-keys) 0) (message "key: %s" (key-description prefix-keys)))
+;;    (when (> (length prefix-keys) 0) (message "key binding: %s" (key-binding prefix-keys)))
     (when (and (> (length prefix-keys) 0)
-               (not (symbolp (key-binding prefix-keys))))
+               (keymapp (key-binding prefix-keys)))
       (let* ((buf (current-buffer))
              ;; get formatted key bindings
              (fmt-width-cons (which-key/get-formatted-key-bindings buf prefix-keys))